import request from '@/utils/request';

// 获取表单初始值, 新建表单可传一些默认值过来.
export async function requestInitialValues(params?: any) {
    return request('https://www.hengdianworld.xyz/dsapp/job/order_new', {
        method: 'GET',
        data: {
            ...params,
        },
    });
}

// 提交表单
export const postInitialValues = (params: any) => {
    return request.post('https://www.hengdianworld.xyz/dsapp/job/order_new', {
        ...params,
    });
};

// 获取所有公司
export async function requestAllComponays(params?: any) {
    return request('/api/getcustomers.ashx', {
        method: 'POST',
        data: {
            ...params,
        },
    });
}
